package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.xmy.cultivate.enums.OpeningSchoolTypeEnum;
import com.xmy.cultivate.enums.SourseLeveEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2022-08-07
 */
@Data
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    
    private Long id;

    /**
     * 角色名
     */
    private String name;

    /**
     * 说明
     */
    private String description;

    private Integer sort;

    /**
     * 适用校区1全部校区，2指定校区
     */
    private OpeningSchoolTypeEnum governMode;

    @TableField(exist = false)
    private SourseLeveEnum sourseLeve;

    @TableField(exist = false)
    private List<Long> schoolIdList;

    @TableField(exist = false)
    private List<Long> permissionIdList;

}
